<#assign messageId = parameters.id?default('_' + fn.id)/>
<#assign eventId = model.instance.srcId >
<#assign clazz = model.instance.srcClassName>
<#assign srcEvent = fn.load(clazz, eventId)>
<#assign orderNbr = fn.val(srcEvent,srcEvent.srcEntityKey) >
<#assign key = srcEvent.srcEntityKey >
<#if clazz=='com.espirit.logistics.Instock'>
     <#assign clazz = 'com.espirit.logistics.Delivery'>
</#if>
<#assign modelName = fn.service('espirit.eap.pagelayout.model').getModelByClassName(clazz).name >
<#assign urlLink = fn.linkModel(modelName,'search') >
<#assign i18nKey = fn.service('espirit.eap.manager.i18n').getKey(modelName)/>
	<div id='el_${messageId}' class="j-form-item">
		<label class="label"><@s.text name="${i18nKey}"/>:</label>
		<span class="span" style="padding-top:5px">
		  	<a href="javascript:openLink('${urlLink}?newSearch=true&model.${key}=${orderNbr}','_popupTab_'+ getText('${i18nKey}')+ ':' + getText('commons.update'),getText('commons.update'),null);">${orderNbr}</a>
		</span>
	</div>
<script>
</script>
